package week6;

import java.io.*;

public class BackPainAnalyzer
{
    /**
     *  Asks questions of the user to diagnose a medical problem.
     */
    public static void main (String[] args) throws FileNotFoundException
    {
        System.out.println ("So, you're having back pain.");

        DecisionTree expert = new DecisionTree("D:\\IdeaProjects\\GK20172301_JavaProgramming\\src\\week6\\input.txt");
        expert.evaluate();

        System.out.println("叶子结点数为："+ expert.CountLeaf());
        System.out.println("树深度为：" + expert.hight());

        System.out.println("层序递归遍历：");
        expert.leveltoString();

        System.out.println();
        System.out.println("层序非递归遍历：");
        expert.leveltoString2();
    }
}
